// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'PeriodExpenseAssginId',
                editTable:true ,
        footer: "Foots",
        cnName: '期初生产任务单费用余额表',
        name: 'PeriodExpenseAssgin',
        newTabEdit: false,
        url: "/PeriodExpenseAssgin/",
        sortName: "PeriodExpenseAssginId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ExpenseItemId":"","StartPeriodAmount":""};
    const editFormOptions = [[{"dataKey":"费用项目","data":[],"title":"费用项目标识","required":true,"field":"ExpenseItemId","type":"select"},
                               {"title":"期初余额","required":true,"field":"StartPeriodAmount","type":"decimal"}]];
    const searchFormFields = {"PeriodYear":"","PeriodMonth":""};
    const searchFormOptions = [[{"dataKey":"会计年度","data":[],"title":"会计年度","field":"PeriodYear","type":"select"},{"dataKey":"会计期间月份","data":[],"title":"会计期间","field":"PeriodMonth","type":"select"}]];
    const columns = [{field:'PeriodExpenseAssginId',title:'期初生产任务费用标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductTaskId',title:'生产任务单',type:'int',bind:{ key:'生产任务单编号',data:[]},width:110,require:true,align:'left'},
                       {field:'PeriodYear',title:'会计年度',type:'int',bind:{ key:'会计年度',data:[]},width:110,require:true,align:'left'},
                       {field:'PeriodMonth',title:'会计期间',type:'int',bind:{ key:'会计期间月份',data:[]},width:110,require:true,align:'left'},
                       {field:'DepartmentId',title:'部门标识',type:'guid',bind:{ key:'部门级联',data:[]},width:110,require:true,align:'left'},
                       {field:'MaterialId',title:'产品标识',type:'int',bind:{ key:'物料字典',data:[]},width:110,require:true,align:'left'},
                       {field:'MaterialName',title:'产品名称',type:'string',width:180,require:true,align:'left'},
                       {field:'Spec',title:'规格型号',type:'string',width:180,align:'left'},
                       {field:'Qty',title:'生产任务数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'ExpenseItemId',title:'费用项目标识',type:'int',bind:{ key:'费用项目',data:[]},width:110,edit:{type:'select'},require:true,align:'left'},
                       {field:'StartPeriodAmount',title:'期初余额',type:'decimal',width:110,edit:{type:'decimal'},require:true,align:'left'},
                       {field:'IsEnabled',title:'启用',type:'int',bind:{ key:'是否',data:[]},width:80,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}